#pragma once

#include "config.h"

class CLock
{
public:

	CLock();
	~CLock();

	void Lock();
	void UnLock();

private:

#ifdef WIN32
	CRITICAL_SECTION	m_cs;
#elif defined(LINUX)
	pthread_mutex_t		m_mutex;
	pthread_mutexattr_t m_mutexattr;
#endif
};